package com.cssy.authority.dao;

import java.util.List;
import org.springframework.dao.DataAccessException;

import com.cssy.authority.entity.ScDepartmentDO;
import com.plat.helper.SearchConditions;

/**
 * 数据访问对象接口
 * @since 2013-04-24
 */
public interface ScDepartmentDAO {

    /**
     * 插入数据
     * @param basicDepartmentDO
     * @return 插入数据的主键
     */
    public String insertBasicDepartmentDO(ScDepartmentDO basicDepartmentDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param basicDepartmentDO
     * @return 查出的记录数
     */
    public Integer countBasicDepartmentDOByExample(ScDepartmentDO basicDepartmentDO) throws DataAccessException;

    /**
     * 更新记录
     * @param basicDepartmentDO
     * @return 受影响的行数
     */
    public Integer updateBasicDepartmentDO(ScDepartmentDO basicDepartmentDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param basicDepartmentDO
     * @return 对象列表
     */
    public List<ScDepartmentDO> findListByExample(ScDepartmentDO basicDepartmentDO) throws DataAccessException;

    /**
     * 根据主键获取basicDepartmentDO
     * @param id
     * @return basicDepartmentDO
     */
    public ScDepartmentDO findBasicDepartmentDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteBasicDepartmentDOByPrimaryKey(String id) throws DataAccessException;

    public List<ScDepartmentDO> find(SearchConditions scs) throws DataAccessException;
    public Integer count(SearchConditions scs) throws DataAccessException;
}